package cn.admin.remoting;

public class RemotingException extends Exception {


    public RemotingException(String msg) {
        super(msg);
    }

    public RemotingException(String msg, Throwable t) {
        super(msg, t);
    }

    public static class WriteOverFlowException extends RemotingException {


        private OverFlowWriteFuture wf;

        public WriteOverFlowException(String msg, OverFlowWriteFuture wf) {
            super(msg);
            this.wf = wf;
        }

        public OverFlowWriteFuture getOverFlowWriteFuture() {
            return wf;
        }
    }
}
